package entities;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.annotation.Unindexed;

@SuppressWarnings("serial")
@Cached
public class Staff implements Serializable, Cloneable {
	@Id
	private String id = "";
	
	@Indexed
	private String username = "";

	@Indexed
	private String password = "";

	@NotSaved
	private String rePassword = "";

	@Unindexed
	private String name = "";

	@Unindexed
	private String mobile = "";

	@Unindexed
	private int gender = 0; // 0:male, 1: female

	@Unindexed
	private Date birthday = new Date();

	@Unindexed
	private int status = 0; // 0-inactive, 1-active
	
	@Unindexed
	private int role = 0; //Admin
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRePassword() {
		return rePassword;
	}

	public void setRePassword(String rePassword) {
		this.rePassword = rePassword;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public int getGender() {
		return gender;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	
	
}
